package com.bjut.vendormgrsys.model.repository;

import com.bjut.vendormgrsys.model.domain.ResumePO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ResumeRepository extends JpaRepository<ResumePO, String>, JpaSpecificationExecutor<ResumePO> {
    ResumePO getByIdAndPositionIdIn(String id, List<String> positionIdList);

    ResumePO getByIdAndCreator(String id, String creator);

    List<ResumePO> getAllByPositionId(String positionId);

    List<ResumePO> getAllByCreator(String creator);

    List<ResumePO> getAllByPositionIdIn(List<String> positionId);
}
